package com.qyhl.webtv.module_news.news.adv;

import com.qyhl.webtv.basiclib.utils.network.EasyHttp;
import com.qyhl.webtv.basiclib.utils.network.callback.SimpleCallBack;
import com.qyhl.webtv.basiclib.utils.network.exception.ApiException;
import com.qyhl.webtv.module_news.common.NewsUrl;

/**
 * Created by qyhl on 2017/11/24.
 */

public class AdvertisementModel implements AdvertisementContract.AdvertisementModel {
    private AdvertisementPresenter mPresenter;

    public AdvertisementModel(AdvertisementPresenter mPresenter) {
        this.mPresenter = mPresenter;
    }

    @Override
    public void count(String id) {

        EasyHttp.get(NewsUrl.GET_NEWADV_COUNT)
                .params("advertiseId", id)
                .execute(new SimpleCallBack<String>() {
                    @Override
                    public void onError(ApiException e) {

                    }

                    @Override
                    public void onSuccess(String s) {

                    }
                });

    }
}
